package org.example.controller.authorization.client;

import com.bianmaba.spring.web.controller.CrudController;
import org.example.bean.entity.authorization.Client;
import org.example.service.authorization.client.IClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cwx183898 on 2017/8/10.
 */
@RestController
@RequestMapping(value = {"management/authorization/client"})
public class MGTClientController extends CrudController<Client, String> {

    private IClientService service;

    @Autowired
    public MGTClientController(IClientService service) {
        this.service = service;
    }

    @Override
    protected IClientService getService() {
        return service;
    }
}
